package com.ruoyi.hospital.domain.prescriptionInfo;

import com.ruoyi.hospital.domain.shop.PharmacyDrugSku;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.math.BigDecimal;

/**
 * 处方药品信息表对象 prescription_drug
 * 
 * @author wendao
 * @date 2024-10-21
 */
public class PrescriptionDrug
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Integer id;

    /** 药品信息 */
    @Excel(name = "药品信息")
    private Integer drugId;
    private String drugName;
    private String useDesc;
    private String mainPic;

    private Integer drugNum; //数量

    private  BigDecimal drugPriceTotal; //总售价

    private Integer useDrugWay; //用药方式
    private Integer numDay;//一日几次
    private Integer pillEvery;//一次几粒

    private Integer pid;//处方id

    private Integer skuId; //sku 信息
    private PharmacyDrugSku pharmacyDrugSku;

    @Excel(name = "备注")
    private String remark;

    public Integer getSkuId() {
        return skuId;
    }

    public void setSkuId(Integer skuId) {
        this.skuId = skuId;
    }

    public PharmacyDrugSku getPharmacyDrugSku() {
        return pharmacyDrugSku;
    }

    public void setPharmacyDrugSku(PharmacyDrugSku pharmacyDrugSku) {
        this.pharmacyDrugSku = pharmacyDrugSku;
    }

    public Integer getUseDrugWay() {
        return useDrugWay;
    }

    public void setUseDrugWay(Integer useDrugWay) {
        this.useDrugWay = useDrugWay;
    }

    public Integer getNumDay() {
        return numDay;
    }

    public void setNumDay(Integer numDay) {
        this.numDay = numDay;
    }

    public Integer getPillEvery() {
        return pillEvery;
    }

    public void setPillEvery(Integer pillEvery) {
        this.pillEvery = pillEvery;
    }

    public BigDecimal getDrugPriceTotal() {
        return drugPriceTotal;
    }

    public void setDrugPriceTotal(BigDecimal drugPriceTotal) {
        this.drugPriceTotal = drugPriceTotal;
    }

    public String getMainPic() {
        return mainPic;
    }

    public void setMainPic(String mainPic) {
        this.mainPic = mainPic;
    }

    public String getDrugName() {
        return drugName;
    }

    public void setDrugName(String drugName) {
        this.drugName = drugName;
    }

    public String getUseDesc() {
        return useDesc;
    }

    public void setUseDesc(String useDesc) {
        this.useDesc = useDesc;
    }

    public Integer getDrugNum() {
        return drugNum;
    }

    public void setDrugNum(Integer drugNum) {
        this.drugNum = drugNum;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setDrugId(Integer drugId) 
    {
        this.drugId = drugId;
    }

    public Integer getDrugId() 
    {
        return drugId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("drugId", getDrugId())
            .append("remark", getRemark())
            .toString();
    }
}
